package com.ceuer.springboot;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:demo.properties")
@ConfigurationProperties(prefix ="demo")
@Data
public class DemoConfig1 {
	private String name;
	private Integer age;
}